dynamic class com.c3d.common.ui.mouse.MouseOutDetector
{
    static var _isReady: Boolean = false;
    static var _isRunning: Boolean = false;

    function MouseOutDetector()
    {
    }

    static function startup($scanArea)
    {
        if (!com.c3d.common.ui.mouse.MouseOutDetector._isRunning) 
        {
            com.c3d.common.ui.mouse.MouseOutDetector._scanArea = $scanArea;
            com.c3d.common.ui.mouse.MouseOutDetector._isRunning = true;
        }
        return true;
    }

    static function shutdown()
    {
        if (com.c3d.common.ui.mouse.MouseOutDetector._isRunning) 
        {
            com.c3d.common.ui.mouse.MouseOutDetector._isRunning = false;
        }
        return true;
    }

    static function onMouseOutDetected()
    {
        com.c3d.common.events.CentralDispatch.dispatchEvent({type: com.c3d.common.events.MouseOutDetectorEvent.MOUSE_OUT, target: null, probability: 0});
    }

    static function onMouseInDetected()
    {
        com.c3d.common.events.CentralDispatch.dispatchEvent({type: com.c3d.common.events.MouseOutDetectorEvent.MOUSE_IN, target: null, probability: 0});
    }

    static function set dmzSize($n)
    {
        com.c3d.common.ui.mouse.MouseOutDetector._dmzSize = $n;
    }

    static function set sensitivity($n)
    {
        com.c3d.common.ui.mouse.MouseOutDetector._sensitivity = $n;
    }

    static function get isReady()
    {
        return com.c3d.common.ui.mouse.MouseOutDetector._isReady;
    }

}
